import request from '@/utils/request'

// 查询消息通知列表
export function listNoticeRelease(query) {
  return request({
    url: '/smartHighway/noticeRelease/list',
    method: 'get',
    params: query
  })
}

// 查询消息通知详细
export function getNoticeRelease(noticeId) {
  return request({
    url: '/smartHighway/noticeRelease/' + noticeId,
    method: 'get'
  })
}

// 新增消息通知
export function addNoticeRelease(data) {
  return request({
    url: '/smartHighway/noticeRelease',
    method: 'post',
    data: data
  })
}

// 修改消息通知
export function updateNoticeRelease(data) {
  return request({
    url: '/smartHighway/noticeRelease',
    method: 'put',
    data: data
  })
}

// 删除消息通知
export function delNoticeRelease(noticeId) {
  return request({
    url: '/smartHighway/noticeRelease/' + noticeId,
    method: 'delete'
  })
}
